package com.hpeu_12.day1230;

public class ExtendsDemo {
	public static void main(String[] args) {
		Student student = new Student();
		student.setName("张三");
		System.out.println("学生："+student.getName());
		student.setGender("男");
		System.out.println(student.getGender());
		Teacher teacher = new Teacher();
		teacher.setName("夏老师");
		System.out.println("老师："+teacher.getName());
	}
}
